package com.example.take_out_dish.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.example.take_out_dish.entity.Dish;
import com.example.take_out_dish.entity.DishFlavor;
import com.example.take_out_dish.entity.Setmeal;
import com.example.take_out_dish.entity.SetmealDish;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
@Data
public class CO extends Setmeal {

    @TableId("id")
    private String id;

    @TableField("category_id")
    private String categoryId;

    @TableField("name")
    private String name;

    @TableField("price")
    private BigDecimal price;

    @TableField("status")
    private Integer status;

    @TableField("code")
    private String code;

    @TableField("description")
    private String description;

    @TableField("image")
    private String image;


    @TableField("create_time")
    private Date createTime;


    @TableField("update_time")
    private Date updateTime;

    @TableField("create_user")
    private String createUser;


    @TableField("update_user")
    private String updateUser;

    @TableField("is_deleted")
    private Integer isDeleted;

    private List<SetmealDish> setmealDishes;



    @Override
    public String toString() {
        return "CO{" +
                "id='" + id + '\'' +
                ", categoryId='" + categoryId + '\'' +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", status=" + status +
                ", code='" + code + '\'' +
                ", description='" + description + '\'' +
                ", image='" + image + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", createUser='" + createUser + '\'' +
                ", updateUser='" + updateUser + '\'' +
                ", isDeleted=" + isDeleted +
                ", setmealDishes=" + setmealDishes +
                '}';
    }
}
